package com.bjpowernode.spring6.web;

import com.bjpowernode.spring6.service.UserService;
import com.bjpowernode.spring6.service.impl.UserServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class UserAction {
    private static final Logger logger = LoggerFactory.getLogger(UserAction.class);
   private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void deleteRequest(Integer id){
        userService.deleteUser(id);
    }
    public void insert(){
        logger.info("Useraction 的insert方法执行");
        userService.insert();
    }
}
